﻿cmake_minimum_required(VERSION 3.10)  #cmake版本最低3.10


if(WIN32)
    set(CMAKE_SYSTEM_VERSION "10.0.18362.0")
endif()



# 设置工具链
set(CMAKE_TOOLCHAIN_FILE "D:/cppsoft/vcpkg-2019/scripts/buildsystems/vcpkg.cmake")



project(data-structure)  #添加当前项目名称


set(CMAKE_CXX_STANDARD 11) #设置C++标准



# 设置输出目录为顶层 bin 文件夹

set(EXECUTABLE_OUTPUT_PATH "${CMAKE_BINARY_DIR}/bin")


# 添加子目录
add_subdirectory(tree)
add_subdirectory(hash)


